<%@ include file="/en/jsp/static.jsp" %>
<jsp:include page="/en/jsp/header.jsp" flush="true"/>
<%
  String DL_CAT_ID = (String)request.getAttribute("DL_CAT_ID");
  String DL_CAT_NAME = (String)request.getAttribute("DL_CAT_NAME");
  String DL_CAT_DIR = (String)request.getAttribute("DL_CAT_DIR");
  String DL_CAT_DESC = (String)request.getAttribute("DL_CAT_DESC");
%>
<SCRIPT LANGUAGE="Javascript">
function checkFields() {
  if (document.confirm.DL_CAT_NAME.value == null || document.confirm.DL_CAT_NAME.value == "") {
    alert("The name is missing.");
    return false;
  }

  return true;
}

function saveChanges() {
  if (checkFields()) {
      document.confirm.action = "<%=BoxStatic.servletDir%>DlCatUpdateAction";
      document.confirm.submit();
  }
}
</SCRIPT>

<table width="100%" height=26 align=middle border=0 cellpadding=0 cellspacing=0 bgcolor="#f4f4f4" style="font-size:16px;color:#d05000">
<tr><td>
    &nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width=14 height=15 border=0 align="absmiddle">
    <b><%=boxName%> - Download Category Management</b>
</td></tr>
</table>
<br>

<FORM METHOD="POST" NAME="confirm">
<INPUT TYPE="hidden" NAME="DL_CAT_ID" VALUE="<%=DL_CAT_ID%>">

<DIV>
<TABLE ALIGN="center" BGCOLOR="#336633" BORDER="0" CELLPADDING="1" CELLSPACING="0" WIDTH="98%">
  <TR><TD class="bg_darkgreen">
  <TABLE ALIGN="center" BGCOLOR="#336633" BORDER="0" CELLPADDING="0" CELLSPACING="5" WIDTH="100%">
  <TR><TD class="bg_darkgreen">
    <p class="white"><b>&nbsp;Edit download category</b></p>
  </TD></TR>
  </TABLE>

    <TABLE ALIGN="center" BGCOLOR="#f6f6f6" BORDER="0" CELLPADDING="5" CELLSPACING="0" WIDTH="100%" HEIGHT="100%">
  <TR><TD class="bg_lightgray" colspan="2"><br>
    <p class="red">&nbsp;&nbsp; <i>Note: Required fields are indicated with an Asterisk (*).</i></p>
  </TD></TR>
    <TR>
      <TD ALIGN="left" VALIGN="top" WIDTH="30%" class="bg_lightgray">
      <DIV class="red"><B>Category Name *</B></DIV>
      </TD>
      <TD ALIGN="left" VALIGN="top" WIDTH="70%" class="bg_lightgray">
      <DIV><INPUT TYPE="text" SIZE="64" NAME="DL_CAT_NAME" MAXLENGTH="64" VALUE="<%=DL_CAT_NAME%>"></DIV>
      </TD>
    </TR>

    <TR>
      <TD ALIGN="left" VALIGN="top" WIDTH="30%" class="bg_lightgray">
      <DIV><B>File Directory</B></DIV>
      </TD>
      <TD ALIGN="left" VALIGN="top" WIDTH="70%" class="bg_lightgray">
      <DIV><INPUT TYPE="text" SIZE="64" NAME="DL_CAT_DIR" MAXLENGTH="64" VALUE="<%=DL_CAT_DIR%>"></DIV>
      </TD>
    </TR>

    <TR>
      <TD ALIGN="left" VALIGN="top" class="bg_lightgray">
      <DIV><B>Description</B></DIV>
      </TD>
      <TD ALIGN="left" VALIGN="top" class="bg_lightgray">
      <DIV><INPUT TYPE="text" SIZE="64" NAME="DL_CAT_DESC" MAXLENGTH="128" VALUE="<%=DL_CAT_DESC%>"></DIV>
      </TD>
    </TR>

    <TR><TD class="bg_lightgray" colspan="2">
    <HR NOSHADE size="1">
     <DIV>
      <A HREF="javascript: saveChanges()"><IMG src="<%=BoxStatic.imageDir%>hbeam_btn_save.gif" width="110" height="20" border="0" alt="Save Changes"></A><!--
      --><A HREF="<%=BoxStatic.jspDir%>download/DlCatAdmin.jsp"><IMG SRC="<%=BoxStatic.imageDir%>hbeam_btn_cancel.gif" width="110" height="20" border="0" alt="Cancel"></A><BR>
     </DIV>
     </TD></TR>
  </TABLE>
</TD></TR>
</TABLE>
</DIV>
</FORM>
<jsp:include page="/en/jsp/footer.jsp" flush="true"/>
